package csel.model.items;

import csel.model.BodyParts;
import csel.model.entity.Entity;
import csel.model.entity.Character;

public abstract class Weapon extends EquippableItem
{
	public enum weaponType {onehanded,twohanded,ranged};
	private int baseUseableOffense;
	/**
	 * 
	 */
	private weaponType myType;
	public weaponType getMyType()
	{
		return myType;
	}
	protected void setMyType(weaponType myType)
	{
		this.myType = myType;
	}
	private static final long serialVersionUID = 1L;
	

	public Weapon(String name, String description, int flexPrice, String typeId)
	{
		super(name, description, flexPrice, typeId, BodyParts.Righthand);
		// TODO Auto-generated constructor stub
	}
	public abstract void attackWith(Character self, Entity e);
	public int getBaseUseableOffense()
	{
		return baseUseableOffense;
	}
	protected void setBaseUseableOffense(int baseUseableOffense)
	{
		this.baseUseableOffense = baseUseableOffense;
	}
	
}
